package vashion.azeroth.contant;

/**
 * 交易相关异常
 *
 */
public enum TranErrorEnum {

	CALL_PING_ERROR(2001, "调用P++接口异常"),
	
	PAY_MODE_ERROR(2002, "不支持此支付方式"),
	
	ORDER_TYPE_ERROR(2003, "类型不正确"),
	
	DISBURSE_ORDER_STATUS_ERROR(2004, "状态不正确"),
	
	DISBURSE_TOTAL_PRICE_ERROR(2005, "商品总价验证错误"),
	
	V_NOT_ENOUGH_ERROR(2006, "V币账户余额不足"),
	
	NOT_MODIFY_OTHER_ORDER(2007, "不能修改其它人订单"),
	
	NOT_REPEAT_RETURN_GOODS(2008, "不能重复退货"),
	
	NOT_CONFIRM_RECEIVED(2009, "未确认收货不能退货"),
	
	TIME_NOT_ENOUGH_RETURN_GOODS(2010, "收货时间太短不能申请退货"),
	
	ITEM_COUNT_NOT_ENOUGH(2011, "库存不足")
	
	;
	
	private  int errorCode;
	private  String errorMessage;

	public int getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	private TranErrorEnum(int errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}
}
